import Vue from 'vue'
import App from './App'
import tools from './common/js/tools.js'
import Ajax from './common/js/ajax.js'
import md5 from './common/js/md5.js'
import * as filters from './common/js/filters.js'
import MyMixin from './mixins/index.js'
// import store from './store/index'
import pageHeader from '@/components/page_header'
import pageFooter from '@/components/page_footer'
Vue.component('pageHeader', pageHeader)
Vue.component('pageFooter', pageFooter)
Vue.mixin(MyMixin)

Object.keys(filters).forEach(key=>{
    Vue.filter(key,filters[key])//插入过滤器名和对应方法
})

Vue.config.productionTip = false
 
Vue.prototype.$tools=tools
Vue.prototype.$Ajax=Ajax
Vue.prototype.$md5=md5
// Vue.prototype.$store = store

import $url from '@/common/js/url.js'
Vue.prototype.$url = $url; 

Vue.mixin({
	// onShow() {
	// 	// 如果UI没有设计单色背景的话可以使用全局
	// 	this.$setStatusBarStyle();
	// }
})

App.mpType = 'app'

const app = new Vue({
    ...App,
	// store
})
app.$mount()
